<?php

namespace app\business\model;

use think\Model;

class MediumModel extends Model
{
    /* 自动处理时间 */
    protected $autoWriteTimestamp = 'int';

    protected $insert = ['uid'];

    protected function setUidAttr()
    {
        return cmf_get_current_admin_id();
    }

    protected function setRegtimeAttr($fields)
    {
        return strtotime($fields);
    }
}